package com.epichust.bootumpp.service.impl;

import com.epichust.bootumpp.model.dao.Umpp5OpWorkTimeDao;
import com.epichust.bootumpp.model.entity.Umpp5OpWorkTime;
import com.epichust.bootumpp.service.IUmpp5OpWorkTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：longyang
 * @date ：Created in 2021/1/7 14:07
 * @description：工序定额时间service
 */
@Service
@Transactional
public class Umpp5OpWorkTimeServiceImpl implements IUmpp5OpWorkTimeService {

    @Autowired
    private Umpp5OpWorkTimeDao umpp5OpWorkTimeDao;

    /**
     * 分页查询工序定额时间表
     * @param map
     * @return
     */
    @Override
    public List<Umpp5OpWorkTime> getAllUmpp5OpWorkTime(Map<String, String> map) {
        List<Umpp5OpWorkTime> list = umpp5OpWorkTimeDao.getAllUmpp5OpWorkTime(map);
        return list;
    }
}
